#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

#define endl '\n'

ll r[100005];
ll b[100005];
int p=1;

int main(){
    freopen("duel.in", "r", stdin);
    #ifndef DEBUG
    freopen("duel.out", "w", stdout);
    #endif
    cin.tie(0)->sync_with_stdio(0);
    cout.tie(0);
    int n,t;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>t;
        ++r[t];
    }
    for(int i=1;i<=100000;i++){
        if(r[i]>0){
            b[p]=r[i];
            p++;
        }
    }
    ll remain=0;
    for(int i=2;i<p;i++){
        // cerr<<b[i-1]<<' '<<remain<<' '<<b[i]<<endl;
        remain = max(0LL, b[i-1]+remain-b[i]);
    }
    cout<<remain+b[p-1]<<endl;
    return 0;
}

// 82 987 5863 21691 7 1 15778 3 3015 9 37 36247 1 1 16277 1
